using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models
{
    [Table("Templete")]
      public class Templete
      {
         [Key]  
         [DisplayName("模板ID")] 
         public int Tid { get; set; }

         public string ProductID { get; set; }

         [Required(ErrorMessage = "模板名称不能空")]  
         [DisplayName("模板名称")] 
         public string TempleteName { get; set; }
         [Required(ErrorMessage = "模板地址不能空")]  
         [DisplayName("模板地址")] 
         public string TempletePath { get; set; }

         [DisplayName("展示地址")] 
         public string ViewPath { get; set; }
         [DisplayName("模板描述")] 

         public string Description { get; set; }
         [Required(ErrorMessage = "使用状态不能空")]  
         [DisplayName("使用状态")] 

         public int Status { get; set; }
         [Required(ErrorMessage = "创建时间不能空")]  
         [DisplayName("创建时间")] 
         public DateTime BeginDate { get; set; }
         [DisplayName("最后修改时间")] 
         public DateTime LastUpdateTime { get; set; }
         public string Thumnail { get; set; }
         } 
} 
